package com.laowang.project.system.service.impl;

import java.util.List;
                            import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhActivityPhoneMapper;
import com.laowang.project.system.domain.MyCyhActivityPhone;
import com.laowang.project.system.service.MyCyhActivityPhoneService;

/**
 * 参加活动电话Service业务层处理
 *
 * @author laowang
 * @date 2023-09-21
 */
@Service
public class MyCyhActivityPhoneServiceImpl implements MyCyhActivityPhoneService {
    @Autowired
    private MyCyhActivityPhoneMapper myCyhActivityPhoneMapper;

    /**
     * 查询参加活动电话
     *
     * @param id 参加活动电话ID
     * @return 参加活动电话
     */
    @Override
    public MyCyhActivityPhone selectMyCyhActivityPhoneById(Integer id) {
        return myCyhActivityPhoneMapper.selectMyCyhActivityPhoneById(id);
    }

    /**
     * 查询参加活动电话列表
     *
     * @param myCyhActivityPhone 参加活动电话
     * @return 参加活动电话
     */
    @Override
    public List<MyCyhActivityPhone> selectMyCyhActivityPhoneList(MyCyhActivityPhone myCyhActivityPhone) {
        return myCyhActivityPhoneMapper.selectMyCyhActivityPhoneList(myCyhActivityPhone);
    }

    /**
     * 新增参加活动电话
     *
     * @param myCyhActivityPhone 参加活动电话
     * @return 结果
     */
    @Override
    public int insertMyCyhActivityPhone(MyCyhActivityPhone myCyhActivityPhone) {
                                                        return myCyhActivityPhoneMapper.insertMyCyhActivityPhone(myCyhActivityPhone);
    }

    /**
     * 修改参加活动电话
     *
     * @param myCyhActivityPhone 参加活动电话
     * @return 结果
     */
    @Override
    public int updateMyCyhActivityPhone(MyCyhActivityPhone myCyhActivityPhone) {
                                                        return myCyhActivityPhoneMapper.updateMyCyhActivityPhone(myCyhActivityPhone);
    }

    /**
     * 批量删除参加活动电话
     *
     * @param ids 需要删除的参加活动电话ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhActivityPhoneByIds(Integer[] ids) {
        return myCyhActivityPhoneMapper.deleteMyCyhActivityPhoneByIds(ids);
    }

    /**
     * 删除参加活动电话信息
     *
     * @param id 参加活动电话ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhActivityPhoneById(Integer id) {
        return myCyhActivityPhoneMapper.deleteMyCyhActivityPhoneById(id);
    }
}
